#include <iostream>
#include <string>

using namespace std;

int main() {
    // 整型
    short int s = 10;
    int i = 100;
    long int l = 1000;
    long long ll = 10000;
    unsigned int u = 20;

    // 浮点型
    float f = 3.14f;
    double d = 3.14159;
    long double ld = 3.14159265358979323846;

    // 字符型
    char c = 'A';

    // 布尔型
    bool b = true;

    // 用户自定义数据类型
    int arr[5] = {1, 2, 3, 4, 5}; // 数组
    struct Person { // 结构体
        string name;
        int age;
    };
    Person p = {"John", 25};
    enum Color {
        RED, GREEN, BLUE
    }; // 枚举
    Color c1 = RED;

    // 输出结果
    cout << "s = " << s << ", i = " << i << ", l = " << l << ", ll = " << ll << ", u = " << u << endl;
    cout << "f = " << f << ", d = " << d << ", ld = " << ld << endl;
    cout << "c = " << c << ", b = " << b << endl;
    cout << "arr = ";
    for (int a: arr) {
        cout << a << " ";
    }
    cout << endl;
    cout << "p.name = " << p.name << ", p.age = " << p.age << endl;
    cout << "c1 = " << c1 << endl;

    return 0;
}